///
///Author: YYF
///Date: 2020-12-19 15:47:06
///Description:
///

import 'package:flutter/material.dart';

class AppColors {
  static const Color mainColor = Color(0xff515151);

  static const Color tabbarColor = Color(0xff999999);

  /// 阴影
  static const shadowColor = Color(0xFFE9E8E8);

  /// 分割线
  static const lineColor = Color(0xFFECECEC);

  /// 页面背景
  static const pageBackColor = Color(0xFFF8F8F8);

  /// 4D4D4D
  static const deepGreyColor = Color(0xFF4D4D4D);

  static const infoGreyColor = Color(0xFF727272);

  /// 进度条阴影
  static const progressShadowColor = Color(0xffC6C6C6);

  /// 进度条阴影
  static const progressSelectedColor = Color(0xffE70606);
}

class AppTextTheme {
  /// 默认
  static TextStyle defaultTextTheme = TextStyle(
    color: Colors.black,
    fontSize: 15,
    /* fontFamily: AppFont.defaultMediumFont */
  );

  /// money
  static TextStyle avantiTextTheme = TextStyle(
    color: Colors.black,
    fontSize: 15,
    fontWeight: FontWeight.bold,
  );

  // 标题
  static TextStyle sectionTitleTheme = TextStyle(
      color: Colors.black,
      fontSize: 18,
      /* fontFamily: AppFont.defaultMediumFont, */
      fontWeight: FontWeight.bold);

  // 灰色标题
  static TextStyle geryTitleTheme = TextStyle(
      color: Colors.grey[600],
      fontSize: 13,
      /* fontFamily: AppFont.defaultMediumFont, */
      fontWeight: FontWeight.normal);

  // 灰色标题
  static TextStyle infoGreyTheme = TextStyle(
      color: AppColors.infoGreyColor,
      fontSize: 13,
      /* fontFamily: AppFont.defaultMediumFont, */
      fontWeight: FontWeight.normal);
}

BoxDecoration customBorderShadoStyle(double circular, double radius) {
  return BoxDecoration(
      borderRadius: BorderRadius.circular(circular),
      color: Colors.white,
      boxShadow: <BoxShadow>[
        BoxShadow(
            color: AppColors.shadowColor,
            blurRadius: radius,
            offset: Offset(0, 1)),
      ]);
}
